package per.ethan.springboot.example.service;

import per.ethan.springboot.example.entity.ScheduleJob;

/**
 * @author Ethan
 * @date 2020/06/07 15:44
 */
public interface ScheduleService {

    void addJob(ScheduleJob scheduleJob);

    void deleteJob(ScheduleJob scheduleJob);

    void updateJob(ScheduleJob scheduleJob);

    void pauseJob(ScheduleJob scheduleJob);

    void pauseAllJob();

    void resumeJob(ScheduleJob scheduleJob);

    void resumeAllJob();

    void runJobNow(ScheduleJob scheduleJob);

}
